$(function (){
	document.documentElement.style.fontSize = window.innerWidth/3.75 + 'px';
	
//	var nums = getQueryStr('nums');
//	var gift = getQueryStr('gift');
	
//	var invitedText = parseInt(gift) == 1 ? '您已成功获得128元精美月饼礼盒，1-3个工作日内叮叮客服会与您联系！' : '您已成功获得50元京东e卡，1-3个工作日内叮叮客服会与您联系！'
	

	
	var activityId = '7';
	var userId = '14580268770523412';//没达标
	//var userId = '1473171196850346715';//达标
	
	//获取邀请详情
	$.ajax({
		type: "post",
		url: "/dingding-web/comActAction!getInviteInfo.action",
		dataType: "jsonp",
		async: false,
		jsonp: "callback",
		jsonpCallback: "success_jsop",
		data: {
			userId: userId,
			activityId: activityId
		},
		success: function(data) {
			console.log(data);
			var tpl = document.getElementById('tpl').innerHTML;
			var html = juicer(tpl, data.responseBody);
			$('body').html(html);
		}
	});
	
})
